﻿using SDDP;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DotNetStar.TheKing.Domain
{
    /// <summary>
    /// 积分策略
    /// </summary>
    [Table("PointsStrategies")]
    public class PointsStrategy : IEntity<string>
    {
        /// <summary>
        /// 积分规则的主键。
        /// </summary>
        [Key,StringLength(20)]
        public string Id { get; set; }

        /// <summary>
        /// 显示名称。
        /// </summary>
        [Required,StringLength(30)]
        public string Name { get; set; }

        /// <summary>
        /// 经验值
        /// </summary>
        public int ExpPoints { get; set; }
        /// <summary>
        /// 交易积分
        /// </summary>
        public int TradingPoints { get; set; }
    }
}
